package com.itheima.abstract1;

//抽象类，用abstract修饰
public abstract class A {

    private int a;
    private String b;
    private double c;

    public A() {
    }

    public A(int a, String b, double c) {
        this.a = a;
        this.b = b;
        this.c = c;
    }

    //抽象方法，用abstract修饰，没有方法体，只有方法声明
    public abstract void test();


    public int getA() {
        return a;
    }

    public void setA(int a) {
        this.a = a;
    }

    public String getB() {
        return b;
    }

    public void setB(String b) {
        this.b = b;
    }

    public double getC() {
        return c;
    }

    public void setC(double c) {
        this.c = c;
    }

    public void show(){
        System.out.println("show方法");
    }
}
